<?php

!defined('BASE_PATH')&&die('forbidden');

class config_dbconfig{
	
	private static $dbconfig=array(
		'default'=>array(
			'tablename'=>array(
				'M'=>array('host'=>'localhost','user'=>'root','psw'=>'123','database'=>'blog'),
				'S'=>array('host'=>'localhost','user'=>'root','psw'=>'123','database'=>'blog')
			),
		)
	);
	
	public static function get($tablename, $m_or_s, $config_tag = 'default'){
		
		return isset(self::$dbconfig[$config_tag][$tablename][$m_or_s]) ? self::$dbconfig[$config_tag][$tablename][$m_or_s] : array();
		
	}
}

?>